<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Listen/index')}">监听列表</a></li>
			<li><a href="{:url('Listen/add')}">添加监听域名/粉丝页</a></li>
		</ul>
<!--         <form class="well form-inline margin-top-20" method="post" action="{:url('fbfans/index')}">
            站长姓名:
            <input type="text" class="form-control" name="uname" style="width: 120px;" value="{:input('request.uname/s','')}" placeholder="请输入站长姓名">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('fbfans/index')}">清空</a>
        </form> -->
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>域名</th>
					<th>站长</th>
					<th>联系电话</th>
					<th>域名状态</th>
					<th>粉丝页（绿色:正常/红色:异常）</th>
					<th>是否监听</th>
					<th width="130">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<volist name="alllist" id="lists">
					<tr>
						<td>{$lists.text}</td>
						<td>{$lists.username.user_login}</td>
						<td>{$lists.phone}</td>
						<td>
							<if condition="$lists.status eq 1">正常
							<else />异常
							</if>
						</td>
						<td>
							<volist name="lists.fanpages" id="fanpage">
								<if condition="$fanpage.status eq 1"><p style="color: #00CD00;">{$fanpage.text}</p>
								<else /><p style="color: red;">{$fanpage.text}</p>
								</if>
							</volist>
						</td>
						<td>
							<if condition="$lists.is_listen eq 1">监听
							<elseif  condition="$lists.is_listen eq 0"/>不监听
							<else />已发送短信
							</if>
						</td>
						<td>
							<a href='{:url("Listen/edit",array("id"=>$lists["id"]))}'>{:lang('EDIT')}</a>
							<a href="{:url('Listen/delete',array('id'=>$lists['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
						</td>
					</tr>
				</volist>
			</tbody>
		</table>
		<div>{$plistpage}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>